﻿h1 {
  color: rgb(255, 176, 6);
  font-family: Arial, Helvetica, sans-serif;
}

h2 {
  color: aqua;
}
h3 {
  color: rgb(255, 176, 6);
}

h4 {
  color: azure;
  font-family: "Saira Extra Condensed", sans-serif;
  /*font-weight: 400;*/
  letter-spacing: 0.1em;
  word-spacing: 0.025em;
}
h5 {
  color: rgb(255, 176, 6);
}
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background-color: rgb(7, 7, 7);
  background-image: url(../css/WEB-DESIGN-ABOUT-US.gif);
  height: 600px;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
  font-family: Arial, Helvetica, sans-serif;
  font-size: medium;
  font-weight: normal;
  font: normal medium Arial, Helvetica, sans-serif;
  line-height: 1.6em;
  margin: 0;
  color: rgb(19, 19, 15);
}

.nested {
  background-color: rgba(243, 235, 235, 0);
  background-image: linear-gradient(rgba(243, 237, 237, 0.171), rgb(0, 0, 0));
  border: 1px rgb(255, 252, 252) solid;
  border-width: 1px;
  border-radius: 25px;
  padding: 20px;
  box-shadow: 10px 10px 10px;
  margin: 0px 20px 0px 0px;
}

.nested h1 {
  font-family: Orator std;
  color: #000;
  font-weight: 200;
  font-style: Orator std;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  word-spacing: 0.3em;
  font-size: xx-large;
  padding: 1rem;
}

.nested h3 {
  font-family: "Saira Extra Condensed", sans-serif;
  font-weight: 200;
  font-style: Orator std;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  word-spacing: 0.1em;
  font-size: x-large;
  text-align: center;
}

.nested h4 {
  text-align: left;
  width: auto;
}
.box-4 {
  background-image: linear-gradient(rgb(0, 0, 0), rgba(0, 0, 0, 0.13));
  position: fixed;
  border-radius: 0 0 25px 0;
}

.box-4 h2 {
  font-family: Orator std;
  font-weight: 200;
  font-style: Orator std;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  word-spacing: 0.3em;
  font-size: xx-large;
  padding-top: 30px;
  margin-left: 10px;
}
.box-5 {
  border: 1px rgb(255, 252, 252) solid;
  border-width: 1px;
  border-radius: 10px;
  background-image: linear-gradient(rgba(5, 5, 5, 0.171), rgb(0, 0, 0));
  padding: 10px;
  height: 20px;
  width: 150px;
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 25px 5px 5px 5px;
  position: sticky;
  top: 1px;
}

.box-5 h3 {
  font-size: medium;
}
.box-6 section {
  position: relative;
  width: 100%;
  padding: 0px 0px 0px 20px;
  display: flex;
  justify-content: center;
  align-items: center;
  text-shadow: 2px 4px 4px rgba(0, 0, 0, 0.671);
}
ul {
  display: flex;
  flex-direction: column;
}
ul li {
  list-style: none;
}

ul li a {
  display: block;
  text-decoration: none;
  /*text-align: center;*/
  font-size: 2em;
  font-weight: 700;
  color: darkgray;
  text-transform: uppercase;
}
ul li a:hover {
  color: rgb(255, 176, 6);
}
ul li a::before {
  content: attr(data-text);
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;

  overflow: hidden;
  z-index: -1;
  text-align: center;
  font-size: 3em;
  color: rgba(0, 255, 255, 0.699);
  opacity: 0;
  line-height: 17vh;
  transition: 700ms;
}
ul li:hover a::before {
  opacity: 1;
}

* {
  box-sizing: border-box;
}
.grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  grid-template-rows: repeat(5, 1fr);
  grid-gap: 1em;
  height: 100vh;
}
.grid > div:nth-child(1)/*NEST */ {
  grid-column: 2/6;
  grid-row: 2/6;
}
.grid > div:nth-child(2)/*WOODTECH*/ {
  grid-column: 1/3;
  grid-row: 1/2;
}
.grid > div:nth-child(3)/*214-123*/ {
  grid-column: 5/6;
  grid-row: 1/2;
  z-index: 2;
}

.grid > div:nth-child(4)/*nav menu*/ {
  grid-column: 1/5;
  grid-row: 5/6;
  z-index: 5;
}

.box-6 .current {
  color: rgb(0, 255, 13);
}

.nested {
  display: grid;
  height: 85vh;
  margin: auto;
}

.nested > div:nth-child(2)/*we are text lorem*/ {
  grid-column: 1/2;
  grid-row: 1/3;
}

.nested > div:nth-child(1)/*co founders*/ {
  grid-column: 2/4;
  grid-row: 1/2;
}

.nested > div:nth-child(3)/*daniel*/ {
  grid-column: 2/3;
  grid-row: 2/3;
}

.nested > div:nth-child(4)/*andrey*/ {
  grid-column: 3/4;
  grid-row: 2/3;
}

.nested #space {
  background-color: rgba(255, 99, 71, 0);
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 20px;
}
.nested #space h3 {
  text-align: center;
  padding: 0.5em;
  background-color: brown;
  color: black;
  font-weight: 400;
  font-family: Orator std;
  font-style: Orator std;
}
.nested #founders {
  background-color: rgba(0, 0, 0, 0);
  background: rgba(0, 0, 0, 0.671);
  background-image: linear-gradient(
    rgba(27, 26, 26, 0.452),
    rgba(0, 0, 0, 0.822)
  );
  border: 1px rgb(5, 5, 5) solid;
  border-width: 2px;
  border-radius: 3px;
  margin: 10vh 5vh 10px 1vh;
  height: 60vh;
  overflow-y: auto;
}

.nested #founders h3 {
  padding: 0.5em;
  color: white;
  text-align: left;
} /*
.nested #andriy img:hover {
  scale: 110%;
  transition: 0.9s;
}
.nested #daniel img:hover {
  scale: 110%;
  transition: 0.9s;
}*/
@media (orientation: portrait) {
  p {
    font-size: 1.5em;
    line-height: 1;
  }
}
@media only screen and (orientation: portrait) {
  .box-6 {
    font-size: 1.2em;
    line-height: 1;
    position: fixed;
    bottom: 50px;
    width: 100%;
  }
}
@media only screen and (max-width: 950px) {
  .box-6 {
    font-size: 1em;
    line-height: 0.8;
    position: fixed;
    bottom: 1px;
    width: 100%;
  }
}
@media (orientation: portrait) {
  .nested #founders {
    font-size: 2em;
    line-height: 1;
    margin: 10vh auto; /*change here for amount of text*/
  }
}
@media (orientation: landscape) {
  p {
    font-size: 0.7em;
    line-height: 0.9;
  }
}
@media only screen and (max-width: 950px) {
  p {
    font-size: 0.8em;
    line-height: 1;
  }
}

@media only screen and (orientation: landscape) {
  .box-6 {
    position: fixed;
    bottom: 1px;
    width: 100%;
  }
}
@media (orientation: portrait) {
  .box-5 {
    height: 3em;
    border-radius: 20px;
    border-width: 2px;
  }
}
@media only screen and (max-width: 950px) {
  .grid {
    height: 100%;
    width: auto;
    grid-template-columns: 1fr;
    display: flex;
    flex-direction: column;
  }
}
@media only screen and (max-width: 950px) {
  .box-5 {
    display: none;
  }
}

@media only screen and (max-width: 950px) {
  .nested > div:nth-child(3)/*daniel*/ {
    grid-column: 3/4;
    grid-row: 1/2;
  }
}
@media only screen and (max-width: 950px) {
  .nested > div:nth-child(4)/*andrey*/ {
    grid-column: 3/4;
    grid-row: 2/3;
  }
}
@media only screen and (max-width: 950px), (orientation: portrait) {
  .nested > div:nth-child(1)/*co founders*/ {
    grid-column: 2/3;
    grid-row: 1/3;
  }
}
@media only screen and (max-width: 950px), (orientation: portrait) {
  .nested #space {
    writing-mode: vertical-lr;
  }
}
@media only screen and (orientation: portrait) {
  .nested > div:nth-child(3)/*daniel*/ {
    grid-column: 3/4;
    grid-row: 1/2;
  }
}
@media only screen and (orientation: portrait) {
  .nested > div:nth-child(4)/*andrey*/ {
    grid-column: 3/4;
    grid-row: 2/3;
  }
}
@media only screen and (orientation: portrait) {
  .nested #andriy {
    margin-top: 25vh;
  }
}
